diff --git a/admin/index.php b/admin/index.php
index 1d5837edc..d8667a155 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -1,330 +1,330 @@
title = $title;
$this->icon = $icon;
$this->href = $href;
$this->data_toggle = $data_toggle;
$this->data_target = $data_target;
if (!empty($href)) {
$fileName = basename($_SERVER["SCRIPT_NAME"]);
if ($href === $fileName) {
$this->active = true;
}
}
}
function addItem(MenuAdmin $menu) {
$this->itens[] = $menu;
if ($menu->active) {
$this->show = true;
}
}
}
$itens = array();
$menu = new MenuAdmin(__("Dashboard"), "fa fa-tachometer-alt", "dashboard");
$itens[] = $menu;
$menu = new MenuAdmin(__("Settings"), "fa fa-wrench");
$menu->addItem(new MenuAdmin(__("Remove Branding"), "far fa-edit", "customize_settings"));
$menu->addItem(new MenuAdmin(__("General Settings"), "fas fa-cog", "general_settings"));
$menu->addItem(new MenuAdmin(__("Site Settings"), "fas fa-sitemap", "site_settings"));
$menu->addItem(new MenuAdmin(__("Social Login Settings"), "fas fa-sign-in-alt", "socialLogin_settings"));
$menu->addItem(new MenuAdmin(__("S3, B2, FTP settings"), "fas fa-hdd", "storage_settings"));
$menu->addItem(new MenuAdmin(__("Payments Settings"), "far fa-money-bill-alt", "payments_settings"));
$itens[] = $menu;
$menu = new MenuAdmin(__("Contents"), "fas fa-list-ul");
$menu->addItem(new MenuAdmin(__("Videos"), "fas fa-play-circle", "videos"));
$menu->addItem(new MenuAdmin(__("Live Stuff"), "fas fa-broadcast-tower", "live"));
$menu->addItem(new MenuAdmin(__("Users"), "glyphicon glyphicon-user", "users"));
$menu->addItem(new MenuAdmin(__("Users Groups"), "fa fa-users", "usersGroups"));
$menu->addItem(new MenuAdmin(__("Categories"), "glyphicon glyphicon-list", "categories"));
$menu->addItem(new MenuAdmin(__("Backup"), "fas fa-undo-alt", "backup"));
$itens[] = $menu;
$menu = new MenuAdmin(__("Design"), "fas fa-pen-fancy");
$menu->addItem(new MenuAdmin(__("First Page Style"), "fas fa-columns", "design_first_page"));
$menu->addItem(new MenuAdmin(__("Player Skin"), "fas fa-play-circle", "design_player"));
$menu->addItem(new MenuAdmin(__("Themes"), "fas fa-palette", "design_themes"));
$menu->addItem(new MenuAdmin(__("Colors"), "fas fa-palette", "design_colors"));
//$menu->addItem(new MenuAdmin(__("Custom CSS"), "fab fa-css3-alt", "design_css"));
$itens[] = $menu;
$menu = new MenuAdmin(__("Monetize"), "fas fa-dollar-sign");
$menu->addItem(new MenuAdmin(__("Site Advertisement with VAST Video ads"), "fas fa-money-check-alt", "monetize_vast"));
$menu->addItem(new MenuAdmin(__("Pay User per Video View"), "far fa-money-bill-alt", "monetize_user"));
$menu->addItem(new MenuAdmin(__("Create Subscription Plans"), "fas fa-money-bill-alt", "monetize_subscription"));
//$menu->addItem(new MenuAdmin(__("Banner Script code"), "fas fa-money-check-alt", "advertisement_script"));
$itens[] = $menu;
/*
$menu = new MenuAdmin(__("Update Version"), "glyphicon glyphicon-refresh", "{$global['webSiteRootURL']}update/");
$itens[] = $menu;
*/
$menu = new MenuAdmin(__("Miscellaneous"), "fas fa-th");
$menu->addItem(new MenuAdmin(__("Plugins"), "fas fa-puzzle-piece", "plugins"));
$menu->addItem(new MenuAdmin(__("Email All Users"), "fas fa-mail-bulk", "mail_all_users"));
$itens[] = $menu;
$_GET['page'] = xss_esc(@$_GET['page']);
$includeHead = "";
$includeBody = "";
switch ($_GET['page']) {
case "backup":
$includeBody = $global['systemRootPath'] . 'admin/backup.php';
break;
case "design_first_page":
$includeBody = $global['systemRootPath'] . 'admin/design_first_page.php';
break;
case "design_themes":
$includeBody = $global['systemRootPath'] . 'admin/design_themes.php';
break;
case "design_colors":
$includeBody = $global['systemRootPath'] . 'admin/design_colors.php';
break;
case "design_player":
$includeBody = $global['systemRootPath'] . 'admin/design_player.php';
break;
case "customize_settings":
$includeBody = $global['systemRootPath'] . 'admin/customize_settings.php';
break;
case "storage_settings":
$includeBody = $global['systemRootPath'] . 'admin/storage_settings.php';
break;
case "general_settings":
$includeBody = $global['systemRootPath'] . 'admin/general_settings.php';
break;
case "payments_settings":
$includeBody = $global['systemRootPath'] . 'admin/payments_settings.php';
break;
case "socialLogin_settings":
$includeBody = $global['systemRootPath'] . 'admin/socialLogin_settings.php';
break;
case "site_settings":
$includeHead = $global['systemRootPath'] . 'view/configurations_head.php';
$includeBody = $global['systemRootPath'] . 'view/configurations_body.php';
break;
case "monetize_subscription":
$includeHead = $global['systemRootPath'] . 'plugin/Subscription/page/editor_head.php';
$includeBody = array();
$includeBody[] = $global['systemRootPath'] . 'plugin/Subscription/page/editor_body.php';
$includeBody[] = $global['systemRootPath'] . 'admin/monetize_subscription.php';
break;
case "monetize_vast":
$includeHead = $global['systemRootPath'] . 'plugin/AD_Server/index_head.php';
$includeBody = $global['systemRootPath'] . 'plugin/AD_Server/index_body.php';
break;
case "monetize_user":
$includeBody = $global['systemRootPath'] . 'admin/monetize_user.php';
break;
case "plugins":
$includeHead = $global['systemRootPath'] . 'view/managerPlugins_head.php';
$includeBody = $global['systemRootPath'] . 'view/managerPlugins_body.php';
break;
case "mail_all_users":
$includeBody = $global['systemRootPath'] . 'admin/mail_all_users.php';
break;
case "users":
$includeHead = $global['systemRootPath'] . 'view/managerUsers_head.php';
$includeBody = $global['systemRootPath'] . 'view/managerUsers_body.php';
break;
case "live":
$includeBody = $global['systemRootPath'] . 'admin/live.php';
break;
case "usersGroups":
$includeHead = $global['systemRootPath'] . 'view/managerUsersGroups_head.php';
$includeBody = $global['systemRootPath'] . 'view/managerUsersGroups_body.php';
break;
case "categories":
$includeHead = $global['systemRootPath'] . 'view/managerCategories_head.php';
$includeBody = $global['systemRootPath'] . 'view/managerCategories_body.php';
break;
case "videos":
$includeHead = $global['systemRootPath'] . 'view/managerVideos_head.php';
$includeBody = $global['systemRootPath'] . 'view/managerVideos_body.php';
break;
default :
$includeHead = $global['systemRootPath'] . 'view/charts_head.php';
$includeBody = $global['systemRootPath'] . 'view/charts_body.php';
break;
}
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
";
include $includeHead;
echo "";
}
?>
diff --git a/locale/index.php b/locale/index.php
index 3a0139f2c..1f2e54514 100644
--- a/locale/index.php
+++ b/locale/index.php
@@ -1,206 +1,206 @@
$value) {
$vars[$matches[1][$key]] = $matches[1][$key];
}
}
}
}
closedir($handle);
}
}
listAll($global['systemRootPath']);
sort($vars);
?>
- :: getWebSiteTitle();?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
chown www-data:www-data locale && sudo chmod -R 755 locale
diff --git a/objects/configuration.php b/objects/configuration.php
index 9e0d0d82e..fbc8bdfeb 100644
--- a/objects/configuration.php
+++ b/objects/configuration.php
@@ -1,503 +1,508 @@
load();
if (!empty($video_resolution)) {
$this->video_resolution = $video_resolution;
}
}
function load() {
global $global;
$sql = "SELECT * FROM configurations WHERE id = 1 LIMIT 1";
//echo $sql;exit;
// add true because I was not getting the SMTP configuration on function setSiteSendMessage(&$mail)
$res = sqlDAL::readSql($sql, "", array(), true);
$result = sqlDAL::fetchAssoc($res);
sqlDAL::close($res);
if ($res && !empty($result)) {
$config = $result;
//var_dump($config);exit;
foreach ($config as $key => $value) {
$this->$key = $value;
}
} else {
return false;
}
}
function save() {
global $global;
if (!User::isAdmin()) {
header('Content-Type: application/json');
die('{"error":"' . __("Permission denied") . '"}');
}
$this->users_id = User::getId();
ObjectYPT::deleteCache("getEncoderURL");
$sql = "UPDATE configurations SET "
. "video_resolution = '{$this->video_resolution}',"
. "webSiteTitle = '{$this->webSiteTitle}',"
. "language = '{$this->language}',"
. "contactEmail = '{$this->contactEmail}',"
. "users_id = '{$this->users_id}', "
. "authCanUploadVideos = '{$this->authCanUploadVideos}',"
. "authCanViewChart = '{$this->authCanViewChart}',"
. "authCanComment = '{$this->authCanComment}',"
. "encoderURL = '{$global['mysqli']->real_escape_string($this->_getEncoderURL())}',"
. "head = '{$global['mysqli']->real_escape_string($this->getHead())}',"
. "adsense = '{$global['mysqli']->real_escape_string($this->getAdsense())}',"
. "mode = '{$this->getMode()}',"
. "logo = '{$global['mysqli']->real_escape_string($this->getLogo())}',"
. "logo_small = '{$global['mysqli']->real_escape_string($this->getLogo_small())}',"
. "disable_analytics = '{$this->getDisable_analytics()}',"
. "disable_youtubeupload = '{$this->getDisable_youtubeupload()}',"
. "allow_download = '{$this->getAllow_download()}',"
. "session_timeout = '{$this->getSession_timeout()}',"
. "autoplay = '{$this->getAutoplay()}',"
. "theme = '{$global['mysqli']->real_escape_string($this->getTheme())}',"
. "smtp = '{$this->getSmtp()}',"
. "smtpAuth = '{$this->getSmtpAuth()}',"
. "smtpSecure = '{$global['mysqli']->real_escape_string($this->getSmtpSecure())}',"
. "smtpHost = '{$global['mysqli']->real_escape_string($this->getSmtpHost())}',"
. "smtpUsername = '{$global['mysqli']->real_escape_string($this->getSmtpUsername())}',"
. "smtpPort = '{$global['mysqli']->real_escape_string($this->getSmtpPort())}',"
. "smtpPassword = '{$global['mysqli']->real_escape_string($this->getSmtpPassword())}'"
. " WHERE id = 1";
return sqlDAL::writeSql($sql);
}
function getVideo_resolution() {
return $this->video_resolution;
}
function getUsers_id() {
return $this->users_id;
}
function getVersion() {
if (empty($this->version)) {
return " 0.1";
}
return $this->version;
}
function getWebSiteTitle() {
return $this->webSiteTitle;
}
function getLanguage() {
if ($this->language == "en") {
return "us";
}
return $this->language;
}
function getContactEmail() {
return $this->contactEmail;
}
function setVideo_resolution($video_resolution) {
$this->video_resolution = $video_resolution;
}
function setWebSiteTitle($webSiteTitle) {
$this->webSiteTitle = $webSiteTitle;
}
function setLanguage($language) {
$this->language = $language;
}
function setContactEmail($contactEmail) {
$this->contactEmail = $contactEmail;
}
function currentVersionLowerThen($version) {
return version_compare($version, $this->getVersion()) > 0;
}
function currentVersionGreaterThen($version) {
return version_compare($version, $this->getVersion()) < 0;
}
function currentVersionEqual($version) {
return version_compare($version, $this->getVersion()) == 0;
}
function getAuthCanUploadVideos() {
return $this->authCanUploadVideos;
}
function getAuthCanViewChart() {
return $this->authCanViewChart;
}
function getAuthCanComment() {
return $this->authCanComment;
}
function setAuthCanUploadVideos($authCanUploadVideos) {
$this->authCanUploadVideos = intval($authCanUploadVideos);
}
function setAuthCanViewChart($authCanViewChart) {
$this->authCanViewChart = $authCanViewChart;
}
function setAuthCanComment($authCanComment) {
$this->authCanComment = $authCanComment;
}
function getHead() {
return $this->head;
}
function getLogo($timestamp = false) {
global $global;
if (empty($this->logo)) {
return "view/img/logo.png";
}
$get = "";
$file = str_replace("?", "", $global['systemRootPath'] . $this->logo);
if ($timestamp && file_exists($file)) {
$get .= "?" . filemtime($file);
}
return $this->logo . $get;
}
static function _getFavicon($getPNG = false) {
global $global;
$file = false;
$url = false;
if (!$getPNG) {
$file = $global['systemRootPath'] . "videos/favicon.ico";
$url = "{$global['webSiteRootURL']}videos/favicon.ico";
if (!file_exists($file)) {
$file = $global['systemRootPath'] . "view/img/favicon.ico";
$url = "{$global['webSiteRootURL']}view/img/favicon.ico";
}
}
if (empty($url) || !file_exists($file)) {
$file = $global['systemRootPath'] . "videos/favicon.png";
$url = "{$global['webSiteRootURL']}videos/favicon.png";
if (!file_exists($file)) {
$file = $global['systemRootPath'] . "view/img/favicon.png";
$url = "{$global['webSiteRootURL']}view/img/favicon.png";
}
}
return array('file' => $file, 'url' => $url);
}
function getFavicon($getPNG = false, $getTime = true) {
$return = self::_getFavicon($getPNG);
if ($getTime) {
return $return['url'] . "?" . filemtime($return['file']);
} else {
return $return['url'];
}
}
static function getOGImage() {
global $global;
$destination = "{$global['systemRootPath']}videos/cache/og_200X200.jpg";
$return = self::_getFavicon(true);
convertImageToOG($return['file'], $destination);
return $global['webSiteRootURL'] . "videos/cache/og_200X200.jpg";
}
function setHead($head) {
$this->head = $head;
}
function setLogo($logo) {
$this->logo = $logo;
}
function getLogo_small() {
if (empty($this->logo_small)) {
return "view/img/logo32.png";
}
return $this->logo_small;
}
function setLogo_small($logo_small) {
$this->logo_small = $logo_small;
}
function getAdsense() {
return $this->adsense;
}
function setAdsense($adsense) {
$this->adsense = $adsense;
}
function getMode() {
if (empty($this->mode)) {
return 'Youtube';
}
return $this->mode;
}
function setMode($mode) {
$this->mode = $mode;
}
// version 2.7
function getDisable_analytics() {
return $this->disable_analytics;
}
function getDisable_youtubeupload() {
return $this->disable_youtubeupload;
}
function getAllow_download() {
return $this->allow_download;
}
function getSession_timeout() {
return $this->session_timeout;
}
function setDisable_analytics($disable_analytics) {
$this->disable_analytics = ($disable_analytics == 'true' || $disable_analytics == '1') ? 1 : 0;
}
function setDisable_youtubeupload($disable_youtubeupload) {
$this->disable_youtubeupload = ($disable_youtubeupload == 'true' || $disable_youtubeupload == '1') ? 1 : 0;
}
function setAllow_download($allow_download) {
$this->allow_download = ($allow_download == 'true' || $allow_download == '1') ? 1 : 0;
}
function setSession_timeout($session_timeout) {
$this->session_timeout = $session_timeout;
}
function getAutoplay() {
return intval($this->autoplay);
}
function setAutoplay($autoplay) {
$this->autoplay = ($autoplay == 'true' || $autoplay == '1') ? 1 : 0;
}
// end version 2.7
static function rewriteConfigFile() {
global $global, $mysqlHost, $mysqlUser, $mysqlPass, $mysqlDatabase;
if (empty($global['salt'])) {
$global['salt'] = uniqid();
}
if (empty($global['disableTimeFix'])) {
$global['disableTimeFix'] = 0;
}
if (empty($global['logfile'])) {
$global['logfile'] = $global['systemRootPath'] . 'videos/avideo.log';
}
$content = "theme)) {
return "default";
}
return $this->theme;
}
function setTheme($theme) {
$this->theme = $theme;
}
function getSmtp() {
return intval($this->smtp);
}
function getSmtpAuth() {
return intval($this->smtpAuth);
}
function getSmtpSecure() {
return $this->smtpSecure;
}
function getSmtpHost() {
return $this->smtpHost;
}
function getSmtpUsername() {
return $this->smtpUsername;
}
function getSmtpPassword() {
return $this->smtpPassword;
}
function setSmtp($smtp) {
$this->smtp = ($smtp == 'true' || $smtp == '1') ? 1 : 0;
}
function setSmtpAuth($smtpAuth) {
$this->smtpAuth = ($smtpAuth == 'true' || $smtpAuth == '1') ? 1 : 0;
}
function setSmtpSecure($smtpSecure) {
$this->smtpSecure = $smtpSecure;
}
function setSmtpHost($smtpHost) {
$this->smtpHost = $smtpHost;
}
function setSmtpUsername($smtpUsername) {
$this->smtpUsername = $smtpUsername;
}
function setSmtpPassword($smtpPassword) {
$this->smtpPassword = $smtpPassword;
}
function getSmtpPort() {
return intval($this->smtpPort);
}
function setSmtpPort($smtpPort) {
$this->smtpPort = intval($smtpPort);
}
function _getEncoderURL() {
return $this->encoderURL;
}
function getEncoderURL() {
global $getEncoderURL;
if (empty($getEncoderURL)) {
$getEncoderURL = ObjectYPT::getCache("getEncoderURL", 60);
if (empty($getEncoderURL)) {
global $advancedCustom;
if (!empty($advancedCustom->useEncoderNetworkRecomendation) && !empty($advancedCustom->encoderNetwork)) {
if (substr($advancedCustom->encoderNetwork, -1) !== '/') {
$advancedCustom->encoderNetwork .= "/";
}
$bestEncoder = json_decode(url_get_contents($advancedCustom->encoderNetwork . "view/getBestEncoder.php", "", 10));
if (!empty($bestEncoder->siteURL)) {
$this->encoderURL = $bestEncoder->siteURL;
} else {
error_log("Configuration::getEncoderURL ERROR your network ($advancedCustom->encoderNetwork) is not configured properly This slow down your site a lot, disable the option useEncoderNetworkRecomendation in your CustomizeAdvanced plugin");
}
}
if (empty($this->encoderURL)) {
$getEncoderURL = "https://encoder1.avideo.com/";
}
if (substr($this->encoderURL, -1) !== '/') {
$this->encoderURL .= "/";
}
$getEncoderURL = $this->encoderURL;
ObjectYPT::setCache("getEncoderURL", $getEncoderURL);
}
}
return $getEncoderURL;
}
function setEncoderURL($encoderURL) {
$this->encoderURL = $encoderURL;
}
+
+ function getPageTitleSeparator() {
+ define("PAGE_TITLE_SEPARATOR", "::"); // This is ready to be configurable, if needed
+ return " " . PAGE_TITLE_SEPARATOR . " ";
+ }
}
diff --git a/objects/userRecoverPass.php b/objects/userRecoverPass.php
index e8fe2a8e1..f579d9f5c 100644
--- a/objects/userRecoverPass.php
+++ b/objects/userRecoverPass.php
@@ -1,179 +1,179 @@
getEmail())) {
$recoverPass = md5(rand());
$recoverPass = $user->setRecoverPass($recoverPass);
if (!empty($_POST['captcha']) && $user->save()) {
require_once 'captcha.php';
$valid = Captcha::validation($_POST['captcha']);
if ($valid) {
require_once $global['systemRootPath'] . 'objects/PHPMailer/src/PHPMailer.php';
require_once $global['systemRootPath'] . 'objects/PHPMailer/src/SMTP.php';
require_once $global['systemRootPath'] . 'objects/PHPMailer/src/Exception.php';
//Create a new PHPMailer instance
$mail = new PHPMailer\PHPMailer\PHPMailer;
setSiteSendMessage($mail);
//Set who the message is to be sent from
$mail->setFrom($config->getContactEmail(), $config->getWebSiteTitle());
//Set who the message is to be sent to
$mail->addAddress($user->getEmail());
//Set the subject line
$mail->Subject = 'Recover Pass from ' . $config->getWebSiteTitle();
$msg = __("You asked for a recover link, click on the provided link") . " " . __("Reset password") . " ";
$mail->msgHTML($msg);
//send the message, check for errors
if (!$mail->send()) {
$obj->error = __("Message could not be sent") . " " . $mail->ErrorInfo;
} else {
$obj->success = __("Message sent");
}
} else {
$obj->error = __("Your code is not valid");
}
} else {
$obj->error = __("Recover password could not be saved!");
}
} else {
$obj->error = __("You do not have an e-mail");
}
die(json_encode($obj));
} else {
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
getRecoverPass() != $_GET['recoverpass']) {
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/API/info.php b/plugin/API/info.php
index 49c093db8..497a6a6fc 100644
--- a/plugin/API/info.php
+++ b/plugin/API/info.php
@@ -1,111 +1,111 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
$method_name) {
if (!preg_match("/(get|set)_api_(.*)/", $method_name, $matches)) {
unset($class_methods[$key]);
}
}
usort($class_methods, function ($a, $b) {
if (!preg_match("/(get|set)_api_(.*)/", $a, $matchesA)) {
return 0;
}
if (!preg_match("/(get|set)_api_(.*)/", $b, $matchesB)) {
return 0;
}
return strcasecmp($matchesA[2], $matchesB[2]);
});
?>
Upload a Video
For more detailed instructions please read this
Your HTML Form should looks like this. The user and the pass values on the action URL will be the video owner
';
echo htmlentities($frm);
?>
You can get notified for the new video uploads with the Webhook in the Notification plugin, Check here for more details
-alt">
getMethod($method_name)->getDocComment();
$comment = str_replace(array('{webSiteRootURL}', '{getOrSet}', '{APIName}', '{APISecret}'), array($global['webSiteRootURL'], $matches[1], $matches[2], $obj->APISecret), $comment);
preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $comment, $match2);
//var_dump($match2[0]);
$link = "" . htmlentities($match2[0][0]) . " ";
$comment = str_replace(array($match2[0][0]," *"), array($link,"*"), $comment);
echo ($comment);
//{webSiteRootURL}plugin/API/{getOrSet}.json.php?name={name}
?>
diff --git a/plugin/Audit/page/editor.php b/plugin/Audit/page/editor.php
index 6511dd23f..2b24d78cb 100644
--- a/plugin/Audit/page/editor.php
+++ b/plugin/Audit/page/editor.php
@@ -1,85 +1,85 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
Class
Method
Statement
Format
Values
Created
User
IP
Class
Method
Statement
Format
Values
Created
User
IP
diff --git a/plugin/BlockonomicsYPT/invoice.php b/plugin/BlockonomicsYPT/invoice.php
index 81f709710..44183c454 100644
--- a/plugin/BlockonomicsYPT/invoice.php
+++ b/plugin/BlockonomicsYPT/invoice.php
@@ -1,134 +1,134 @@
setUpPayment($_GET['value']);
$order = new BlockonomicsOrder($order_id);
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
Order#: getId()); ?>
To pay, send exact amount of BTC to the given address
Amount
getFormatedBits(); ?> BTC ⇌ getTotal_value(); ?> getCurrency(); ?>
Payment Details:
Payment Expired
Payment Error
Unconfirmed
Partially Confirmed
Confirmed
Received : getFormatedBits_payed(); ?>
BTC
Transaction :
diff --git a/plugin/BulkEmbed/search.php b/plugin/BulkEmbed/search.php
index 00dc9746a..7dca4630e 100644
--- a/plugin/BulkEmbed/search.php
+++ b/plugin/BulkEmbed/search.php
@@ -1,449 +1,449 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/CloneSite/index.php b/plugin/CloneSite/index.php
index e25dca203..14b69d48d 100644
--- a/plugin/CloneSite/index.php
+++ b/plugin/CloneSite/index.php
@@ -1,164 +1,164 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/CombineSites/page/editor.php b/plugin/CombineSites/page/editor.php
index eaa44d1de..fcd3ca067 100644
--- a/plugin/CombineSites/page/editor.php
+++ b/plugin/CombineSites/page/editor.php
@@ -1,606 +1,606 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
' . __("Waiting connection approval") . '
' . __("Connected") . '
' . __("Connection pre approved") . '
';
return $str;
}
function combineEditorGiveLabels($name, $id) {
$str = '
' . __("Request to approve connection") . '
' . __("Connected") . '
' . __("Pre approved connection") . '
';
return $str;
}
?>
\ No newline at end of file
diff --git a/plugin/CustomizeAdvanced/confirmRating.php b/plugin/CustomizeAdvanced/confirmRating.php
index a4634bdf7..70b982b63 100644
--- a/plugin/CustomizeAdvanced/confirmRating.php
+++ b/plugin/CustomizeAdvanced/confirmRating.php
@@ -1,95 +1,95 @@
poster;
if (!empty($images->posterPortrait) && strpos($images->posterPortrait, 'notfound_portrait') === false) {
$img = $images->posterPortrait;
}
$imgw = 1280;
$imgh = 720;
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
" />
- getWebSiteTitle(); ?>" />
" />
diff --git a/plugin/CustomizeUser/confirmVideoPassword.php b/plugin/CustomizeUser/confirmVideoPassword.php
index e7bba87b3..7d6c5ac87 100644
--- a/plugin/CustomizeUser/confirmVideoPassword.php
+++ b/plugin/CustomizeUser/confirmVideoPassword.php
@@ -1,112 +1,112 @@
poster;
if (!empty($images->posterPortrait) && strpos($images->posterPortrait, 'notfound_portrait') === false) {
$img = $images->posterPortrait;
}
$imgw = 1280;
$imgh = 720;
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
" />
- getWebSiteTitle(); ?>" />
" />
diff --git a/plugin/Gallery/view/topLogic.php b/plugin/Gallery/view/topLogic.php
index 35e720c70..d539b91cc 100644
--- a/plugin/Gallery/view/topLogic.php
+++ b/plugin/Gallery/view/topLogic.php
@@ -1,77 +1,77 @@
sortReverseable) {
if (strpos($_SERVER['REQUEST_URI'], "?") != false) {
$orderString = $_SERVER['REQUEST_URI'] . "&";
} else {
$orderString = $_SERVER['REQUEST_URI'] . "/?";
}
$orderString = str_replace("&&", "&", $orderString);
$orderString = str_replace("//", "/", $orderString);
}
$video = Video::getVideo("", "viewable", !$obj->hidePrivateVideos, false, true);
if (empty($video)) {
$video = Video::getVideo("", "viewable", !$obj->hidePrivateVideos, true);
}
if (empty($_GET['page'])) {
$_GET['page'] = 1;
} else {
$_GET['page'] = intval($_GET['page']);
}
$total = 0;
$totalPages = 0;
$url = '';
$args = '';
$metaDescription = "";
if(!empty($video)){
if (strpos($_SERVER['REQUEST_URI'], "?") != false) {
$args = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], "?"), strlen($_SERVER['REQUEST_URI']));
}
if (strpos($_SERVER['REQUEST_URI'], "/cat/") === false) {
$url = $global['webSiteRootURL'] . "page/";
} else {
$url = $global['webSiteRootURL'] . "cat/" . $video['clean_category'] . "/page/";
}
$contentSearchFound = false;
// for SEO to not rise an error of duplicated title or description of same pages with and without last slash
$siteTitle .= getSEOComplement();
$metaDescription = " ".$video['id'];
// make sure the www has a different title and description than non www
if(strrpos($_SERVER['HTTP_HOST'], 'www.')=== false){
- $siteTitle .= " :: ".__("Home");
- $metaDescription .= " :: ".__("Home");
+ $siteTitle .= $config->getPageTitleSeparator() . __("Home");
+ $metaDescription .= $config->getPageTitleSeparator() . __("Home");
}
} else {
- $siteTitle .= (!empty($siteTitle) ? " :: " : "") . __("Video Not Available");
+ $siteTitle .= (!empty($siteTitle) ? $config->getPageTitleSeparator() : "") . __("Video Not Available");
}
-$siteTitle .= " :: " . $config->getWebSiteTitle();
+$siteTitle .= $config->getPageTitleSeparator() . $config->getWebSiteTitle();
diff --git a/plugin/Live/index.php b/plugin/Live/index.php
index 2faece05e..4ede56896 100644
--- a/plugin/Live/index.php
+++ b/plugin/Live/index.php
@@ -1,298 +1,298 @@
getDataObject();
if (!empty($_GET['c'])) {
$user = User::getChannelOwner($_GET['c']);
if (!empty($user)) {
$_GET['u'] = $user['user'];
}
}
if (!empty($_GET['c'])) {
$user = User::getChannelOwner($_GET['c']);
if ($user['status'] !== 'a') {
header("Location: {$global['webSiteRootURL']}");
}
}
if (!empty($_GET['u']) && !empty($_GET['embedv2'])) {
include $global['systemRootPath'] . 'plugin/Live/view/videoEmbededV2.php';
exit;
} else if (!empty($_GET['u']) && !empty($_GET['embed'])) {
include $global['systemRootPath'] . 'plugin/Live/view/videoEmbeded.php';
exit;
} else if (!empty($_GET['u'])) {
include $global['systemRootPath'] . 'plugin/Live/view/modeYoutubeLive.php';
exit;
} else if (!User::isLogged()) {
gotToLoginAndComeBackHere("");
exit;
} else if (!User::canStream()) {
forbiddenPage(__($obj->streamDeniedMsg));
}
require_once $global['systemRootPath'] . 'objects/userGroups.php';
require_once $global['systemRootPath'] . 'objects/functions.php';
require_once $global['systemRootPath'] . 'plugin/Live/Objects/LiveTransmition.php';
$users_id = User::getId();
if (!empty($_GET['users_id']) && User::isAdmin()) {
$users_id = intval($_GET['users_id']);
}
// if user already have a key
$trasnmition = LiveTransmition::createTransmitionIfNeed($users_id);
if (!empty($_GET['resetKey'])) {
LiveTransmition::resetTransmitionKey($users_id);
header("Location: {$global['webSiteRootURL']}plugin/Live/");
exit;
}
$aspectRatio = "16:9";
$vjsClass = "vjs-16-9";
$trans = new LiveTransmition($trasnmition['id']);
$groups = $trans->getGroups();
//check if channel name exists
$channelName = User::getUserChannelName();
if (empty($channelName)) {
$channelName = uniqid();
$user = new User($users_id);
$user->setChannelName($channelName);
$user->save();
}
$col1Class = "col-md-12 col-lg-12";
$col2Class = "hidden";
$chat2 = AVideoPlugin::getObjectDataIfEnabled("Chat2");
if (!empty($chat2) && !empty($chat2->useStaticLayout)) {
$col1Class = "col-md-8 col-lg-8";
$col2Class = "col-md-4 col-lg-4";
}
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
useLiveServers) {
$activeServerFound = true;
?>
$value) {
$active = "";
if (isset($_REQUEST['live_servers_id'])) {
if ($_REQUEST['live_servers_id'] == $value['id']) {
$activeServerFound = true;
$active = "active";
}
} else if ($key == 0) {
$_REQUEST['live_servers_id'] = $value['id'];
$activeServerFound = true;
$active = "active";
}
?>
Edit Live Servers
getChat($trasnmition['key']);
?>
diff --git a/plugin/Live/view/Live_restreams/index.php b/plugin/Live/view/Live_restreams/index.php
index 6c04678a7..a69601499 100644
--- a/plugin/Live/view/Live_restreams/index.php
+++ b/plugin/Live/view/Live_restreams/index.php
@@ -1,29 +1,29 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/Live/view/Live_servers/index.php b/plugin/Live/view/Live_servers/index.php
index e978cdb09..47717823b 100644
--- a/plugin/Live/view/Live_servers/index.php
+++ b/plugin/Live/view/Live_servers/index.php
@@ -1,29 +1,29 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/Live/view/editor.php b/plugin/Live/view/editor.php
index 75f8bdfdf..86b2539e6 100644
--- a/plugin/Live/view/editor.php
+++ b/plugin/Live/view/editor.php
@@ -1,52 +1,52 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/Live/view/modeYoutubeLive.php b/plugin/Live/view/modeYoutubeLive.php
index d52ad8edc..67e182f28 100644
--- a/plugin/Live/view/modeYoutubeLive.php
+++ b/plugin/Live/view/modeYoutubeLive.php
@@ -1,223 +1,223 @@
userCanSeeTransmition()) {
forbiddenPage("You are not allowed see this streaming");
}
$uuid = LiveTransmition::keyNameFix($livet['key']);
$u = new User(0, $_GET['u'], false);
$user_id = $u->getBdId();
$video['users_id'] = $user_id;
$subscribe = Subscribe::getButton($user_id);
$name = $u->getNameIdentificationBd();
$name = "{$name} " . User::getEmailVerifiedIcon($user_id) . " ";
$liveTitle = $livet['title'];
$liveDescription = $livet['description'];
$liveImg = User::getPhoto($user_id);
if (!empty($_REQUEST['playlists_id_live'])) {
$liveTitle = PlayLists::getNameOrSerieTitle($_REQUEST['playlists_id_live']);
$liveDescription = PlayLists::getDescriptionIfIsSerie($_REQUEST['playlists_id_live']);
$liveImg = PlayLists::getImage($_REQUEST['playlists_id_live']);
}
$video['creator'] = '';
$img = "{$global['webSiteRootURL']}plugin/Live/getImage.php?u={$_GET['u']}&format=jpg";
$imgw = 640;
$imgh = 360;
$liveDO = AVideoPlugin::getObjectData("Live");
$video['type'] = 'video';
AVideoPlugin::getModeYouTubeLive($user_id);
$isCompressed = AVideoPlugin::loadPluginIfEnabled('TheaterButton') && TheaterButton::isCompressed();
$sideAd = getAdsSideRectangle();
$modeYoutubeBottomClass1 = "col-sm-7 col-md-7 col-lg-6";
$modeYoutubeBottomClass2 = "col-sm-5 col-md-5 col-lg-4 ";
if (empty($sideAd) && !AVideoPlugin::loadPluginIfEnabled("Chat2")) {
$modeYoutubeBottomClass1 = "col-sm-12 col-md-12 col-lg-10";
$modeYoutubeBottomClass2 = "hidden ";
}
?>
- :: - getWebSiteTitle(); ?>
+ getPageTitleSeparator() . __("Live") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
- getWebSiteTitle(); ?>" />
" />
diff --git a/plugin/LiveChat/index.php b/plugin/LiveChat/index.php
index b322d9020..6fabb7c9f 100644
--- a/plugin/LiveChat/index.php
+++ b/plugin/LiveChat/index.php
@@ -1,40 +1,40 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
LiveChat uses a SSL connection
If you are using Apache web server (2.4 or above), enable these modules in httpd.conf file :
mod_proxy.so
mod_proxy_wstunnel.so
Add this setting to your httpd.conf file
ProxyPass /wss/ ws://127.0.0.1:8888/
Restart Apache web server and make sure that your Ratchet worker (web socket connection) is open before applying the settings (telnet hostname port).
diff --git a/plugin/LiveLinks/index.php b/plugin/LiveLinks/index.php
index 38ad5a110..931c957e0 100644
--- a/plugin/LiveLinks/index.php
+++ b/plugin/LiveLinks/index.php
@@ -1,32 +1,32 @@
canAddLinks()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this"));
exit;
}
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/LiveLinks/view/Live.php b/plugin/LiveLinks/view/Live.php
index 2ae1668c2..c8a752809 100644
--- a/plugin/LiveLinks/view/Live.php
+++ b/plugin/LiveLinks/view/Live.php
@@ -1,191 +1,191 @@
getType() == 'logged_only' && !User::isLogged()) {
die('Link for logged only');
}
$uuid = $_GET['link'];
$t['users_id'] = $liveLink->getUsers_id();
$t['title'] = $liveLink->getTitle();
$t['link'] = $liveLink->getLink();
$t['description'] = $liveLink->getDescription();
$u = new User($t['users_id']);
$user_id = $u->getBdId();
$subscribe = Subscribe::getButton($user_id);
$name = $u->getNameIdentificationBd();
$name = "{$name} " . User::getEmailVerifiedIcon($user_id) . " ";
$video['creator'] = '';
$video['type'] = "liveLink";
$img = "{$global['webSiteRootURL']}plugin/LiveLinks/getImage.php?link={$_GET['link']}&format=jpg";
$imgw = 640;
$imgh = 360;
if (!empty($_GET['embed'])) {
include $global['systemRootPath'] . 'plugin/LiveLinks/view/videoEmbeded.php';
return false;
}
$isCompressed = AVideoPlugin::loadPluginIfEnabled('TheaterButton') && TheaterButton::isCompressed();
$sideAd = getAdsSideRectangle();
$modeYoutubeBottomClass1 = "col-sm-7 col-md-7 col-lg-6";
$modeYoutubeBottomClass2 = "col-sm-5 col-md-5 col-lg-4 ";
if (empty($sideAd) && !AVideoPlugin::loadPluginIfEnabled("Chat2")) {
$modeYoutubeBottomClass1 = "col-sm-12 col-md-12 col-lg-10";
$modeYoutubeBottomClass2 = "hidden ";
}
?>
- :: :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . __("Live Links") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
- getWebSiteTitle(); ?>" />
" />
getChat($uuid);
}
?>
diff --git a/plugin/LoginControl/View/Users_login_history/index.php b/plugin/LoginControl/View/Users_login_history/index.php
index 3ae2d0895..c8e7f7eb4 100644
--- a/plugin/LoginControl/View/Users_login_history/index.php
+++ b/plugin/LoginControl/View/Users_login_history/index.php
@@ -1,29 +1,29 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/LoginControl/View/editor.php b/plugin/LoginControl/View/editor.php
index ffa42e2dd..2174d3bdb 100644
--- a/plugin/LoginControl/View/editor.php
+++ b/plugin/LoginControl/View/editor.php
@@ -1,46 +1,46 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/Meet/View/Meet_join_log/index.php b/plugin/Meet/View/Meet_join_log/index.php
index 6fc363c0a..9973eddf2 100644
--- a/plugin/Meet/View/Meet_join_log/index.php
+++ b/plugin/Meet/View/Meet_join_log/index.php
@@ -1,29 +1,29 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/Meet/View/Meet_schedule/index.php b/plugin/Meet/View/Meet_schedule/index.php
index 6fc363c0a..9973eddf2 100644
--- a/plugin/Meet/View/Meet_schedule/index.php
+++ b/plugin/Meet/View/Meet_schedule/index.php
@@ -1,29 +1,29 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/Meet/View/Meet_schedule_has_users_groups/index.php b/plugin/Meet/View/Meet_schedule_has_users_groups/index.php
index 6fc363c0a..9973eddf2 100644
--- a/plugin/Meet/View/Meet_schedule_has_users_groups/index.php
+++ b/plugin/Meet/View/Meet_schedule_has_users_groups/index.php
@@ -1,29 +1,29 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/Meet/View/editor.php b/plugin/Meet/View/editor.php
index b78e18dee..d8c21f8f8 100644
--- a/plugin/Meet/View/editor.php
+++ b/plugin/Meet/View/editor.php
@@ -1,58 +1,58 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/Meet/checkServers.php b/plugin/Meet/checkServers.php
index 6c9d84d81..cb1b4ea31 100644
--- a/plugin/Meet/checkServers.php
+++ b/plugin/Meet/checkServers.php
@@ -1,396 +1,396 @@
setDataObjectParameter("server->value", preg_replace("/[^0-1a-z.]/i", "", $_GET['newServer']));
}
$m = AVideoPlugin::loadPlugin("Meet");
$emptyObject = $m->getEmptyDataObject();
$timeouts = 2000;
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
server->type as $key => $value) {
if ($key == "custom") {
?>
{$value} ({$obj->CUSTOM_JITSI_DOMAIN}) ";
if ($obj->server->value !== $key) {
?>
{$value} ";
if ($obj->server->value !== $key) {
?>
Download Speed
Upload Speed
Response Time
Sites Active
Streamers Services
Before Change the server make sure you do not have any meeting running.
Other users may not able to connect after you change it.
Higher grade, means the server is better for a meeting.
diff --git a/plugin/Meet/confirmMeetPassword.php b/plugin/Meet/confirmMeetPassword.php
index 82db0aa98..315dad34b 100644
--- a/plugin/Meet/confirmMeetPassword.php
+++ b/plugin/Meet/confirmMeetPassword.php
@@ -1,105 +1,105 @@
getUsers_id());
$photo = User::getPhoto($meet->getUsers_id());
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/Meet/index.php b/plugin/Meet/index.php
index 34e579f39..31e5b65e6 100644
--- a/plugin/Meet/index.php
+++ b/plugin/Meet/index.php
@@ -1,212 +1,212 @@
setDataObjectParameter("server->value", preg_replace("/[^0-1a-z.]/i", "", $_GET['newServer']));
}
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/Permissions/View/Users_groups_permissions/index.php b/plugin/Permissions/View/Users_groups_permissions/index.php
index 7beb9d1af..506594f55 100644
--- a/plugin/Permissions/View/Users_groups_permissions/index.php
+++ b/plugin/Permissions/View/Users_groups_permissions/index.php
@@ -1,29 +1,29 @@
-
:: getWebSiteTitle(); ?>
+
getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/Permissions/View/editor.php b/plugin/Permissions/View/editor.php
index ba72d6051..fc6c14a9e 100644
--- a/plugin/Permissions/View/editor.php
+++ b/plugin/Permissions/View/editor.php
@@ -1,46 +1,46 @@
-
:: getWebSiteTitle(); ?>
+
getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/PlayLists/View/Playlists_schedules/index.php b/plugin/PlayLists/View/Playlists_schedules/index.php
index aebe0fa2f..7bab9500e 100644
--- a/plugin/PlayLists/View/Playlists_schedules/index.php
+++ b/plugin/PlayLists/View/Playlists_schedules/index.php
@@ -1,29 +1,29 @@
-
:: getWebSiteTitle(); ?>
+
getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/PlayLists/View/editor.php b/plugin/PlayLists/View/editor.php
index 09578a86d..47715446e 100644
--- a/plugin/PlayLists/View/editor.php
+++ b/plugin/PlayLists/View/editor.php
@@ -1,46 +1,46 @@
-
:: getWebSiteTitle(); ?>
+
getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/PlayLists/epg.php b/plugin/PlayLists/epg.php
index feff76a50..c3b131c30 100644
--- a/plugin/PlayLists/epg.php
+++ b/plugin/PlayLists/epg.php
@@ -1,33 +1,33 @@
-
:: getWebSiteTitle(); ?>
+
getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
' . __("Now Playing") . '
';
//include_once $global['systemRootPath'] . 'plugin/PlayLists/epg.html.php';
include_once $global['systemRootPath'] . 'plugin/PlayLists/epg.day.php';
echo '
';
?>
diff --git a/plugin/PlayLists/player.php b/plugin/PlayLists/player.php
index 803226d4b..f9973919e 100644
--- a/plugin/PlayLists/player.php
+++ b/plugin/PlayLists/player.php
@@ -1,360 +1,360 @@
src = $images->thumbsJpg;
$thumbnail = array($src);
$playListSources = array();
foreach ($sources as $value2) {
if ($value2['type'] !== 'video' && $value2['type'] !== 'audio') {
continue;
}
$playListSources[] = new playListSource($value2['url'], $value['type'] === 'embed');
}
if (empty($playListSources)) {
continue;
}
$playListData[] = new PlayListElement($value['title'], $value['description'], $value['duration'], $playListSources, $thumbnail, $images->poster, parseDurationToSeconds(@$externalOptions->videoStartSeconds), $value['cre'], $value['likes'], $value['views_count'], $value['videos_id']);
}
$video = PlayLists::isPlayListASerie($_GET['playlists_id']);
if (!empty($video['id'])) {
AVideoPlugin::getEmbed($video['id']);
}
?>
- getName(); ?> :: getWebSiteTitle(); ?>
+ getName() . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
showChannelBannerOnModeYoutube)) {
?>
showAdsenseBannerOnTop)) {
?>
getAutoplay() && false) { // disable it for now ?>
autoplay="true"
muted="muted"
preload="auto"
controls class="embed-responsive-item video-js vjs-default-skin vjs-big-play-centered" id="mainVideo"
data-setup='{"techOrder": ["youtube","html5"]}'>
"/>
doNotDisplayViews)) {
?>
>
! videoNotFoundText->value) ? __("We have not found any videos or audios to show") : $advancedCustom->videoNotFoundText->value; ?>.
diff --git a/plugin/PlayerSkins/playerSample.php b/plugin/PlayerSkins/playerSample.php
index 5ef668e1a..18004946a 100644
--- a/plugin/PlayerSkins/playerSample.php
+++ b/plugin/PlayerSkins/playerSample.php
@@ -1,64 +1,64 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/PredefinedCategory/page/editor.php b/plugin/PredefinedCategory/page/editor.php
index 256f71f41..302d9d264 100644
--- a/plugin/PredefinedCategory/page/editor.php
+++ b/plugin/PredefinedCategory/page/editor.php
@@ -1,307 +1,307 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
Here you can choose the default category whenever a video is submitted to your site.
Select a user then choose the defaul category.
Here you can choose the default user group.
When ever you upload a new video this video will be exclusive for the
user groups you selected.
Leave it blank to be public by default
diff --git a/plugin/StripeYPT/listSubscriptions.php b/plugin/StripeYPT/listSubscriptions.php
index 89501501c..ee8bee47c 100644
--- a/plugin/StripeYPT/listSubscriptions.php
+++ b/plugin/StripeYPT/listSubscriptions.php
@@ -1,143 +1,143 @@
cancelSubscriptions($_GET['subscription_id']);
}
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
getAllSubscriptions();
foreach ($subs->data as $value) {
$users_id = $value->metadata->users_id;
$plans_id = $value->metadata->plans_id;
$title = "";
$body = "";
$buttonClass = "danger";
if (!empty($users_id)) {
$user = new User($users_id);
if (!empty($user)) {
$title .= $user->getName() . " (" . $user->getEmail() . ")";
}
} else {
$title .= "User ID Not found";
}
if (AVideoPlugin::isEnabledByName("Subscription")) {
if (!empty($plans_id)) {
$plan = new SubscriptionPlansTable($plans_id);
if (!empty($plan)) {
$title .= " [" . $plan->getName() . "]";
$row = SubscriptionTable::getSubscription($users_id, $plans_id);
if (!empty($row)) {
$buttonClass = "success";
}
}
} else {
$title .= " [Plan ID Not found]";
}
}
$body .= "
Created in: " . date("Y-m-d", $value->created);
foreach ($value->items->data as $value2) {
$body .= "
Plan: " . $value2->plan->nickname;
$body .= "
Value: " . StripeYPT::addDot($value2->plan->amount) . " " . $value2->plan->currency;
$body .= "
Interval: each " . $value2->plan->interval_count . " " . $value2->plan->interval;
}
?>
getAllSubscriptions('trialing');
foreach ($subs->data as $value) {
$users_id = $value->metadata->users_id;
$plans_id = $value->metadata->plans_id;
$title = "";
$body = "";
$buttonClass = "danger";
if (!empty($users_id)) {
$user = new User($users_id);
if (!empty($user)) {
$title .= $user->getName() . " (" . $user->getEmail() . ")";
}
} else {
$title .= "User ID Not found";
}
if (AVideoPlugin::isEnabledByName("Subscription")) {
if (!empty($plans_id)) {
$plan = new SubscriptionPlansTable($plans_id);
if (!empty($plan)) {
$title .= " [" . $plan->getName() . "]";
$row = SubscriptionTable::getSubscription($users_id, $plans_id);
if (!empty($row)) {
$buttonClass = "success";
}
}
} else {
$title .= " [Plan ID Not found]";
}
}
$body .= "
Created in: " . date("Y-m-d", $value->created);
foreach ($value->items->data as $value2) {
$body .= "
Plan: " . $value2->plan->nickname;
$body .= "
Value: " . StripeYPT::addDot($value2->plan->amount) . " " . $value2->plan->currency;
$body .= "
Interval: each " . $value2->plan->interval_count . " " . $value2->plan->interval;
}
?>
diff --git a/plugin/TopMenu/index.php b/plugin/TopMenu/index.php
index ca7e46a02..17c82fa90 100644
--- a/plugin/TopMenu/index.php
+++ b/plugin/TopMenu/index.php
@@ -1,56 +1,56 @@
getUrl();
?>
- getTitle(); ?> :: getWebSiteTitle(); ?>
+ getTitle() . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/TopMenu/page/editor.php b/plugin/TopMenu/page/editor.php
index 51527220f..72b552ab1 100644
--- a/plugin/TopMenu/page/editor.php
+++ b/plugin/TopMenu/page/editor.php
@@ -1,569 +1,569 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
Text
diff --git a/plugin/VideoLogoOverlay/page/editor.php b/plugin/VideoLogoOverlay/page/editor.php
index b8b4a9601..eae47f57a 100644
--- a/plugin/VideoLogoOverlay/page/editor.php
+++ b/plugin/VideoLogoOverlay/page/editor.php
@@ -1,179 +1,179 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
Create an Video Overlay Button
diff --git a/plugin/VideoTags/index.php b/plugin/VideoTags/index.php
index 49ec09e96..87b56f2c4 100644
--- a/plugin/VideoTags/index.php
+++ b/plugin/VideoTags/index.php
@@ -1,27 +1,27 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/WWBN/page/info.php b/plugin/WWBN/page/info.php
index 989fdaa65..511ed279e 100644
--- a/plugin/WWBN/page/info.php
+++ b/plugin/WWBN/page/info.php
@@ -1,155 +1,155 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
INSTRUCTION
Step #1 - Setup
Enable "WWBN" plugin and Create an Account.
Step #2 - Account Verified
Wait until you received an email similar to this one. Then you can login from here to submit/update your index or go back to your "WWBN" plugin then login through the setup button.
Step #3 - Signin and Submit an Index
For adding new index; for the first time the data from your platform will be automatically generated and if you already have an existing data you need to type your other platform url then click generate.
Step #4 - Verify Index
Click the unverified/verified button of your index, A form to input your validation token will pop-up or an alert message that your index is already verified.
Step #5 - Updating Index
Click the edit button of your index, change/update the data for the allowed/editable field then click update button to appy changes.
Step #5 - Deactivating/Re-activating Index
Changing status of your index to inreview or inactive
Additional Info - Index data
Display engine name with your platform icon.
Display verify or unverified, Click the to unverified to show form to verify your Index so that the admin can assign your it to an affiliate.
Inreview = Pending for approval, Inactive = Indexing is not avaible for assigning to an Affiliate or Disapproved by the admin due to some contents conflict, Approved = Index is ready/avialable to be assign to an Affiliate but still need verified.
The Content Type of your Platform.
Edit button, redirect to update form to edit the content type or country restriction.
Link button, redirect to your platform home page.
Deactivate = To set the status to inactive, Re-activate = To set/resubmit your index to be index to an affiliate
Display list of Affiliate/s.
diff --git a/plugin/WWBN/page/wwbn_signup.php b/plugin/WWBN/page/wwbn_signup.php
index 396ddddca..2dcb17550 100644
--- a/plugin/WWBN/page/wwbn_signup.php
+++ b/plugin/WWBN/page/wwbn_signup.php
@@ -1,38 +1,38 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/YPTWallet/view/addFunds.php b/plugin/YPTWallet/view/addFunds.php
index e87ccf42c..44e9dfa60 100644
--- a/plugin/YPTWallet/view/addFunds.php
+++ b/plugin/YPTWallet/view/addFunds.php
@@ -1,97 +1,97 @@
getDataObject();
if (!empty($paypal)) {
$paypalObj = $paypal->getDataObject();
}
$options = json_decode($obj->addFundsOptions);
unset($_SESSION['addFunds_Success']);
unset($_SESSION['addFunds_Fail']);
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
add_funds_text ?>
add_funds_success_fail;
break;
case "success":
$text = $obj->add_funds_success_success;
$class = "success";
break;
case "cancel":
$text = $obj->add_funds_success_cancel;
$class = "warning";
break;
}
?>
currency_symbol; ?> currency; ?>
currency_symbol; ?> currency; ?>
getAvailablePayments();
?>
diff --git a/plugin/YPTWallet/view/adminManageWallets.php b/plugin/YPTWallet/view/adminManageWallets.php
index fbf150741..18340ae6a 100644
--- a/plugin/YPTWallet/view/adminManageWallets.php
+++ b/plugin/YPTWallet/view/adminManageWallets.php
@@ -1,153 +1,153 @@
getDataObject();
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/YPTWallet/view/configuration.php b/plugin/YPTWallet/view/configuration.php
index 59f80e8b9..8978e42c0 100644
--- a/plugin/YPTWallet/view/configuration.php
+++ b/plugin/YPTWallet/view/configuration.php
@@ -1,74 +1,74 @@
getDataObject();
$wallet = new Wallet(0);
$wallet->setUsers_id(User::getId());
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/YPTWallet/view/history.php b/plugin/YPTWallet/view/history.php
index 200cfb3b4..5ae68a85d 100644
--- a/plugin/YPTWallet/view/history.php
+++ b/plugin/YPTWallet/view/history.php
@@ -1,162 +1,162 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/YPTWallet/view/manualAddFunds.php b/plugin/YPTWallet/view/manualAddFunds.php
index 469534ba4..5b2970604 100644
--- a/plugin/YPTWallet/view/manualAddFunds.php
+++ b/plugin/YPTWallet/view/manualAddFunds.php
@@ -1,120 +1,120 @@
getDataObject();
$options = json_decode($obj->addFundsOptions);
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
add_funds_text ?>
add_funds_success_fail;
break;
case "success":
$text = $obj->add_funds_success_success;
$class = "success";
break;
case "cancel":
$text = $obj->add_funds_success_cancel;
$class = "warning";
break;
}
?>
currency_symbol; ?> currency; ?>
currency_symbol; ?> currency; ?>
manualAddFundsPageButton; ?>
diff --git a/plugin/YPTWallet/view/manualWithdrawFunds.php b/plugin/YPTWallet/view/manualWithdrawFunds.php
index 4964320d7..125355f03 100644
--- a/plugin/YPTWallet/view/manualWithdrawFunds.php
+++ b/plugin/YPTWallet/view/manualWithdrawFunds.php
@@ -1,119 +1,119 @@
getDataObject();
$options = json_decode($obj->withdrawFundsOptions);
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
withdraw_funds_text ?>
add_funds_success_fail;
break;
case "success":
$text = $obj->add_funds_success_success;
$class = "success";
break;
case "cancel":
$text = $obj->add_funds_success_cancel;
$class = "warning";
break;
}
?>
currency_symbol; ?> currency; ?>
currency_symbol; ?> currency; ?>
manualWithdrawFundsPageButton; ?>
diff --git a/plugin/YPTWallet/view/pendingRequests.php b/plugin/YPTWallet/view/pendingRequests.php
index ee32b47fe..afedf4428 100644
--- a/plugin/YPTWallet/view/pendingRequests.php
+++ b/plugin/YPTWallet/view/pendingRequests.php
@@ -1,116 +1,116 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/plugin/YPTWallet/view/transferFunds.php b/plugin/YPTWallet/view/transferFunds.php
index 33281ed49..b76b8a036 100644
--- a/plugin/YPTWallet/view/transferFunds.php
+++ b/plugin/YPTWallet/view/transferFunds.php
@@ -1,201 +1,201 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
transfer_funds_text ?>
transfer_funds_success_fail;
break;
case "success":
$text = $obj->transfer_funds_success_success;
$class = "success";
break;
}
?>
{identification}
diff --git a/view/about.php b/view/about.php
index d235077fc..236d554b3 100644
--- a/view/about.php
+++ b/view/about.php
@@ -1,85 +1,85 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
getAbout();
}
if (empty($custom)) {
?>
getVersion()); ?>
: ()
diff --git a/view/channel.php b/view/channel.php
index 292737fa8..279862ec8 100644
--- a/view/channel.php
+++ b/view/channel.php
@@ -1,52 +1,52 @@
getStatus()==='i'){
forbiddenPage(__("This user is inactive"));
}
$isMyChannel = $user_id == User::getId();
AVideoPlugin::getChannel($user_id, $user);
$channelFluidLayout = true;
// verify the width to match with the old profile bg image
$bgImagePath = $global['systemRootPath'] . $user->getBackgroundURL();
$bgSize = getimagesize($bgImagePath);
if($bgSize[0]<2048){
$channelFluidLayout = false;
}
$metaDescription = " Channel - {$_GET['channelName']}";
?>
- :: :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . __("Channel") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
">
diff --git a/view/channelProgram.php b/view/channelProgram.php
index 52d4aa422..c2b50ee18 100644
--- a/view/channelProgram.php
+++ b/view/channelProgram.php
@@ -1,604 +1,604 @@
getUsers_id();
}
$user_id = $_GET['user_id'];
$publicOnly = true;
$isMyChannel = false;
if (User::isLogged() && $user_id == User::getId()) {
$publicOnly = false;
$isMyChannel = true;
}
$programs = PlayList::getAllFromUser($user_id, $publicOnly, false, @$_GET['program_id']);
if (empty($programs)) {
$programs = PlayList::getAllFromUser($user_id, $publicOnly);
} else {
$videosArrayId = PlayList::getVideosIdFromPlaylist($_GET['program_id']);
$videos_id = $videosArrayId[0];
}
$playListsObj = AVideoPlugin::getObjectData("PlayLists");
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
$program) {
@$timesC[__LINE__] += microtime(true) - $startC;
$startC = microtime(true);
$videosArrayId = PlayList::getVideosIdFromPlaylist($program['id']);
@$timesC[__LINE__] += microtime(true) - $startC;
$startC = microtime(true);
//getAllVideos($status = "viewable", $showOnlyLoggedUserVideos = false, $ignoreGroup = false, $videosArrayId = array(), $getStatistcs = false, $showUnlisted = false, $activeUsersOnly = true)
if (empty($videosArrayId) && ($program['status'] == "favorite" || $program['status'] == "watch_later")) {
unset($programs[$key]);
continue;
} else if (empty($videosArrayId)) {
$videosP = array();
} else if ($advancedCustom->AsyncJobs) {
$videosP = Video::getAllVideosAsync("viewable", false, true, $videosArrayId, false, true);
} else {
$videosP = Video::getAllVideos("viewable", false, true, $videosArrayId, false, true);
}//var_dump($videosArrayId, $videosP);exit;
@$timesC[__LINE__] += microtime(true) - $startC;
$startC = microtime(true);
//_error_log("channelPlaylist videosP: ".json_encode($videosP));
$videosP = PlayList::sortVideos($videosP, $videosArrayId);
@$timesC[__LINE__] += microtime(true) - $startC;
$startC = microtime(true);
//_error_log("channelPlaylist videosP2: ".json_encode($videosP));
//_error_log("channelPlaylist videosArrayId: ".json_encode($videosArrayId));
$playListButtons = AVideoPlugin::getPlayListButtons($program['id']);
@$timesC[__LINE__] += microtime(true) - $startC;
$startC = microtime(true);
?>
plugin/PlayLists/embed.php?playlists_id=" frameborder="0" allowfullscreen="allowfullscreen" allow="autoplay">'/>
thumbsGif;
$poster = $images->thumbsJpg;
$class = "";
$style = "";
if ($count > 6) {
$class = "showMoreLess{$program['id']}";
$style = "display: none;";
}
?>
label === __("Group")) {
?>
text; ?>
doNotDisplayViews)) {
?>
\ No newline at end of file
diff --git a/view/channels.php b/view/channels.php
index c60bef246..2d0c64a06 100644
--- a/view/channels.php
+++ b/view/channels.php
@@ -1,170 +1,170 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
$value['channelName']);
?>
diff --git a/view/charts.php b/view/charts.php
index edf8daef6..e3b6d4a75 100644
--- a/view/charts.php
+++ b/view/charts.php
@@ -1,24 +1,24 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/configurations.php b/view/configurations.php
index ed7bd0447..b7fe2a8cb 100644
--- a/view/configurations.php
+++ b/view/configurations.php
@@ -1,35 +1,35 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/contact.php b/view/contact.php
index 2b235e46b..9add31bae 100644
--- a/view/contact.php
+++ b/view/contact.php
@@ -1,161 +1,161 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/downloadExternalVideo.php b/view/downloadExternalVideo.php
index 9231fdaa7..0d9fa386e 100644
--- a/view/downloadExternalVideo.php
+++ b/view/downloadExternalVideo.php
@@ -1,182 +1,182 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
youtube-dl
Youtube-dl
sudo apt-get install python
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl
diff --git a/view/forbiddenPage.php b/view/forbiddenPage.php
index 36cd996c7..2e229d1c3 100644
--- a/view/forbiddenPage.php
+++ b/view/forbiddenPage.php
@@ -1,27 +1,27 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/help.php b/view/help.php
index 465caa851..6a5500550 100644
--- a/view/help.php
+++ b/view/help.php
@@ -1,114 +1,114 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/iframe.php b/view/iframe.php
index fa8623690..9a5858265 100644
--- a/view/iframe.php
+++ b/view/iframe.php
@@ -1,84 +1,84 @@
onlyVerifiedEmailCanUpload) && $advancedCustomUser->onlyVerifiedEmailCanUpload && User::isVerified()) || (isset($advancedCustomUser->onlyVerifiedEmailCanUpload) && !$advancedCustomUser->onlyVerifiedEmailCanUpload) || !isset($advancedCustomUser->onlyVerifiedEmailCanUpload)) {
if (!empty($config->getEncoderURL())) {
$iframeURL = $config->getEncoderURL()."?noNavbar=1&".getCredentialsURL();
}else{
if(empty($iframeURL)){
forbiddenPage("Your encoder is empty");
}
}
}else{
if(empty($iframeURL)){
forbiddenPage("You cannot upload 1");
}
}
break;
case "network":
$titleTag = __("Network");
if ((isset($advancedCustomUser->onlyVerifiedEmailCanUpload) && $advancedCustomUser->onlyVerifiedEmailCanUpload && User::isVerified()) || (isset($advancedCustomUser->onlyVerifiedEmailCanUpload) && !$advancedCustomUser->onlyVerifiedEmailCanUpload) || !isset($advancedCustomUser->onlyVerifiedEmailCanUpload)) {
if (!empty($advancedCustom->encoderNetwork) && empty($advancedCustom->doNotShowEncoderNetwork)) {
$iframeURL = $advancedCustom->encoderNetwork."?".getCredentialsURL();
}else{
if(empty($iframeURL)){
forbiddenPage("Network is disabled");
}
}
}else{
if(empty($iframeURL)){
forbiddenPage("You cannot upload 1");
}
}
break;
case "log":
$titleTag = __("Log");
$iframeURL = $global['webSiteRootURL']."view/logs.php";
break;
}
if(empty($iframeURL)){
forbiddenPage("Invalid Type {$_GET['type']}");
}
?>
- getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/import.php b/view/import.php
index 1c9821e1d..53ea83952 100644
--- a/view/import.php
+++ b/view/import.php
@@ -1,162 +1,162 @@
doNotShowImportMP4Button)) {
return false;
}
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/logs.php b/view/logs.php
index 9dece48fb..889484291 100644
--- a/view/logs.php
+++ b/view/logs.php
@@ -1,336 +1,336 @@
+
-
...
";
$collapsibleClose = "
";
$outputText = "";
$outputTextErrors = array();
$outputTextWarnings = array();
$linesAdded = 0;
$isCollapsed = true;
function e($text) {
if (empty($text)) {
return false;
}
global $printedarray, $global, $mysqlPass,
$outputText, $outputTextErrors, $outputTextWarnings,
$collapsibleOpen, $collapsibleClose, $linesAdded, $isCollapsed;
$uniqid = "";
$class = "";
$collapsible = true;
$uniqid = uniqid();
if (
preg_match("/(AVideoLog::SECURITY)/", $text, $matches) ||
preg_match("/(Prepare failed)/i", $text, $matches) ||
preg_match("/(AVideoLog::ERROR)/", $text, $matches) ||
preg_match("/(fatal)/i", $text, $matches)) {
$outputTextErrors[] = array($uniqid, $text, $matches[1]);
$class = "terminal-alert terminal-alert-error ";
$style = "background-color: #A00; color:#FFF;font-weight: bold;";
$collapsible = false;
} else
if (preg_match("/(PHP Warning)/i", $text, $matches)) {
$class = "terminal-alert terminal-alert-primary";
$outputTextWarnings[] = array($uniqid, $text, $matches[1]);
$collapsible = false;
} else if (preg_match("/PHP Notice/", $text)) {
$class = "logNotice";
} else if (preg_match("/(AVideoLog::WARNING)/", $text, $matches) || preg_match("/AVideoLog::DEBUG/", $text)) {
$class = "logDebug";
}
if ($collapsible) {
$log = preg_replace("/^[^\]]+/", "", $text);
if (!empty($log)) {
if (in_array($log, $printedarray)) {
$class = "logIgnore";
}
$printedarray[] = $log;
}
}
$removeLinesWithWords = array('password', 'recoverPass', 'pass');
foreach ($removeLinesWithWords as $value) {
if (preg_match("/{$value}/i", $text)) {
$text = preg_replace("/[^ ]/", "*", $text) . " - {$value}";
break;
}
}
$text = preg_replace("/[^ ]+@[^ ]+/i", "myemail@mydomain.com", $text);
$text = htmlentities($text);
if ($collapsible && !$isCollapsed) {
$outputText .= $collapsibleOpen;
$isCollapsed = true;
}
if (!$collapsible && $isCollapsed) {
if ($linesAdded === 0) {
$outputText = "";
} else {
$outputText .= $collapsibleClose;
}
$isCollapsed = false;
}
if (!$collapsible && !$isCollapsed) {
}
$linesAdded++;
$outputText .= ""
. "#{$linesAdded} {$text}"
. "
" . PHP_EOL;
return true;
}
if (empty($global['logfile'])) {
die("Log variable does not exists");
}
if (!file_exists($global['logfile'])) {
die("you may have problems on the write permission for the log file");
}
$lines = tail($global['logfile'], 5000, true, true);
$lines = array_reverse($lines);
foreach ($lines as $key => $line) {
if (empty($line[0])) {
unset($line[$key]);
} else {
break;
}
}
$outputText .= $collapsibleOpen;
foreach ($lines as $line) {
e($line[0]);
}
$outputText .= $collapsibleClose;
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
If you have a problem with your installation, feel free to share this log information on GitHub,
on this log we hide all the sensitive information from your log. but it still very helpfull to find issues.
#{$count} - {$value[2]}"; ?>
#{$count} - {$value[2]}";
}
?>
Expand All
Collapse All
\ No newline at end of file
diff --git a/view/managerCategories.php b/view/managerCategories.php
index dc3378977..8bda67513 100644
--- a/view/managerCategories.php
+++ b/view/managerCategories.php
@@ -1,30 +1,30 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/managerComments.php b/view/managerComments.php
index ac2511d25..8fa424d90 100644
--- a/view/managerComments.php
+++ b/view/managerComments.php
@@ -1,41 +1,41 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/managerPlugins.php b/view/managerPlugins.php
index a62585a40..534059f78 100644
--- a/view/managerPlugins.php
+++ b/view/managerPlugins.php
@@ -1,28 +1,28 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/managerSubscribes.php b/view/managerSubscribes.php
index fb9972065..d1c2f8cd2 100644
--- a/view/managerSubscribes.php
+++ b/view/managerSubscribes.php
@@ -1,141 +1,141 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
..." style="width: 100%;">
diff --git a/view/managerUsers.php b/view/managerUsers.php
index f72861ce8..3da7c2bde 100644
--- a/view/managerUsers.php
+++ b/view/managerUsers.php
@@ -1,34 +1,34 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/managerUsersGroups.php b/view/managerUsersGroups.php
index 3ec5d4df9..d2bd8aeb3 100644
--- a/view/managerUsersGroups.php
+++ b/view/managerUsersGroups.php
@@ -1,35 +1,35 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/managerVideos.php b/view/managerVideos.php
index c114f0100..09f738db9 100644
--- a/view/managerVideos.php
+++ b/view/managerVideos.php
@@ -1,43 +1,43 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/mini-upload-form/index.php b/view/mini-upload-form/index.php
index d5c1e6b27..1939bfd11 100644
--- a/view/mini-upload-form/index.php
+++ b/view/mini-upload-form/index.php
@@ -1,101 +1,101 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
" enctype="multipart/form-data">
encoder or use the public one"); ?>
diff --git a/view/modeYoutube.php b/view/modeYoutube.php
index 8e83f67bf..4d541eebe 100644
--- a/view/modeYoutube.php
+++ b/view/modeYoutube.php
@@ -1,463 +1,463 @@
thumbnails;
$poster = $evideo->thumbnails;
$imgw = 1280;
$imgh = 720;
$autoPlaySources = array();
$autoPlayURL = '';
$autoPlayPoster = '';
$autoPlayThumbsSprit = '';
} else {
require_once $global['systemRootPath'] . 'objects/user.php';
require_once $global['systemRootPath'] . 'objects/category.php';
require_once $global['systemRootPath'] . 'objects/subscribe.php';
require_once $global['systemRootPath'] . 'objects/functions.php';
$img = "{$global['webSiteRootURL']}view/img/notfound.jpg";
$poster = "{$global['webSiteRootURL']}view/img/notfound.jpg";
$imgw = 1280;
$imgh = 720;
if (!empty($_GET['type'])) {
if ($_GET['type'] == 'audio') {
$_SESSION['type'] = 'audio';
} else
if ($_GET['type'] == 'video') {
$_SESSION['type'] = 'video';
} else
if ($_GET['type'] == 'pdf') {
$_SESSION['type'] = 'pdf';
} else {
$_SESSION['type'] = "";
unset($_SESSION['type']);
}
} else {
unset($_SESSION['type']);
}
session_write_close();
$modeYouTubeTimeLog['Code part 1'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
if (!empty($_GET['playlist_id'])) {
$isSerie = 1;
if (preg_match("/^[0-9]+$/", $_GET['playlist_id'])) {
$playlist_id = $_GET['playlist_id'];
} else if (User::isLogged()) {
if ($_GET['playlist_id'] == "favorite") {
$playlist_id = PlayList::getFavoriteIdFromUser(User::getId());
} else {
$playlist_id = PlayList::getWatchLaterIdFromUser(User::getId());
}
}
if (!empty($_GET['playlist_index'])) {
$playlist_index = $_GET['playlist_index'];
} else {
$playlist_index = 0;
}
$videosArrayId = PlayList::getVideosIdFromPlaylist($playlist_id);
$videosPlayList = Video::getAllVideos("viewable", false, false, $videosArrayId, false, true);
$videosPlayList = PlayList::sortVideos($videosPlayList, $videosArrayId);
$videoSerie = Video::getVideoFromSeriePlayListsId($playlist_id);
unset($_GET['playlist_id']);
$isPlayListTrailer = false;
$playListObject = AVideoPlugin::getObjectData("PlayLists");
if (!empty($videoSerie)) {
$videoSerie = Video::getVideo($videoSerie["id"], "", true);
if (!empty($playListObject->showTrailerInThePlayList) && !empty($videoSerie["trailer1"]) && filter_var($videoSerie["trailer1"], FILTER_VALIDATE_URL) !== FALSE) {
$videoSerie["type"] = "embed";
$videoSerie["videoLink"] = $videoSerie["trailer1"];
array_unshift($videosPlayList, $videoSerie);
array_unshift($videosArrayId, $videoSerie['id']);
$isPlayListTrailer = true;
}
}
if (empty($playlist_index) && $isPlayListTrailer) {
$video = $videoSerie;
} else {
$vid = new Video("", "", $videosPlayList[$playlist_index]['id']);
$_GET['videoName'] = $vid->getClean_title();
$video = Video::getVideo($videosPlayList[$playlist_index]['id'], "viewable", false, false, false, true);
}
if (!empty($videosPlayList[$playlist_index + 1])) {
$autoPlayVideo = Video::getVideo($videosPlayList[$playlist_index + 1]['id'], "viewableNotUnlisted", false, false, false, true);
$autoPlayVideo['url'] = $global['webSiteRootURL'] . "playlist/{$playlist_id}/" . ($playlist_index + 1);
} else if (!empty($videosPlayList[0])) {
$autoPlayVideo = Video::getVideo($videosPlayList[0]['id'], "viewableNotUnlisted", false, false, false, true);
$autoPlayVideo['url'] = $global['webSiteRootURL'] . "playlist/{$playlist_id}/0";
}
} else {
$catLink = "";
if (!empty($_GET['catName'])) {
$catLink = "cat/{$_GET['catName']}/";
}
// add this because if you change the video category the video was not loading anymore
$catName = @$_GET['catName'];
if (empty($_GET['clean_title']) && (isset($advancedCustom->forceCategory) && $advancedCustom->forceCategory === false)) {
$_GET['catName'] = "";
}
if (empty($video)) {
$video = Video::getVideo("", "viewable", false, false, true, true);
}
if (empty($video)) {
$video = Video::getVideo("", "viewable", false, false, false, true);
}
if (empty($video)) {
$video = AVideoPlugin::getVideo();
}
if (!empty($_GET['v']) && (empty($video) || $video['id'] != $_GET['v'])) {
$video = false;
}
if(!empty($video['id'])){
// allow users to count a view again in case it is refreshed
Video::unsetAddView($video['id']);
// add this because if you change the video category the video was not loading anymore
$_GET['catName'] = $catName;
$_GET['isMediaPlaySite'] = $video['id'];
$obj = new Video("", "", $video['id']);
}
/*
if (empty($_SESSION['type'])) {
$_SESSION['type'] = $video['type'];
}
*
*/
// $resp = $obj->addView();
$get = array('channelName' => @$_GET['channelName'], 'catName' => @$_GET['catName']);
$modeYouTubeTimeLog['Code part 1.1'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
if (!empty($video['next_videos_id'])) {
$modeYouTubeTimeLog['Code part 1.2'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
$autoPlayVideo = Video::getVideo($video['next_videos_id']);
} else {
$modeYouTubeTimeLog['Code part 1.3'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
/*
if ($video['category_order'] == 1) {
$modeYouTubeTimeLog['Code part 1.4'] = microtime(true)-$modeYouTubeTime;
$modeYouTubeTime = microtime(true);
unset($_POST['sort']);
$category = Category::getAllCategories();
$_POST['sort']['title'] = "ASC";
$modeYouTubeTimeLog['Code part 1.4.1'] = microtime(true)-$modeYouTubeTime;
$modeYouTubeTime = microtime(true);
// maybe there's a more slim method?
$videos = Video::getAllVideos();
$videoFound = false;
$autoPlayVideo;
foreach ($videos as $value) {
if ($videoFound) {
$autoPlayVideo = $value;
break;
}
if ($value['id'] == $video['id']) {
// if the video is found, make another round to have the next video properly.
$videoFound = true;
}
}
} else {
*
*/
$modeYouTubeTimeLog['Code part 1.5'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
if(!empty($video['id'])){
$autoPlayVideo = Video::getRandom($video['id']);
}
//}
}
$modeYouTubeTimeLog['Code part 1.6'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
if (!empty($autoPlayVideo)) {
$name2 = User::getNameIdentificationById($autoPlayVideo['users_id']) . ' ' . User::getEmailVerifiedIcon($autoPlayVideo['users_id']);
$autoPlayVideo['creator'] = '';
$autoPlayVideo['tags'] = Video::getTags($autoPlayVideo['id']);
//$autoPlayVideo['url'] = $global['webSiteRootURL'] . $catLink . "video/" . $autoPlayVideo['clean_title'];
$autoPlayVideo['url'] = Video::getLink($autoPlayVideo['id'], $autoPlayVideo['clean_title'], false, $get);
}
}
$modeYouTubeTimeLog['Code part 2'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
if (!empty($video)) {
$name = User::getNameIdentificationById($video['users_id']);
$name = "{$name} " . User::getEmailVerifiedIcon($video['users_id']) . " ";
$subscribe = Subscribe::getButton($video['users_id']);
$video['creator'] = '';
$obj = new Video("", "", $video['id']);
// dont need because have one embeded video on this page
// $resp = $obj->addView();
}
if (!empty($video) && $video['type'] == "video") {
$poster = "{$global['webSiteRootURL']}videos/{$video['filename']}.jpg";
} else {
$poster = "{$global['webSiteRootURL']}view/img/audio_wave.jpg";
}
if (!empty($video)) {
$source = Video::getSourceFile($video['filename']);
if (($video['type'] !== "audio") && ($video['type'] !== "linkAudio") && !empty($source['url'])) {
$img = $source['url'];
$data = getimgsize($source['path']);
$imgw = $data[0];
$imgh = $data[1];
} else if ($video['type'] == "audio") {
$img = "{$global['webSiteRootURL']}view/img/audio_wave.jpg";
}
$type = 'video';
if ($video['type'] === 'pdf') {
$type = 'pdf';
} else if ($video['type'] === 'zip') {
$type = 'zip';
} else if ($video['type'] === 'article') {
$type = 'article';
}
$images = Video::getImageFromFilename($video['filename'], $type);
$poster = isMobile() ? $images->thumbsJpg : $images->poster;
if (!empty($images->posterPortrait) && basename($images->posterPortrait) !== 'notfound_portrait.jpg' && basename($images->posterPortrait) !== 'pdf_portrait.png' && basename($images->posterPortrait) !== 'article_portrait.png') {
$img = $images->posterPortrait;
$data = getimgsize($source['path']);
$imgw = $data[0];
$imgh = $data[1];
} else {
$img = isMobile() ? $images->thumbsJpg : $images->poster;
}
} else {
$poster = "{$global['webSiteRootURL']}view/img/notfound.jpg";
}
$objSecure = AVideoPlugin::getObjectDataIfEnabled('SecureVideosDirectory');
$modeYouTubeTimeLog['Code part 3'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
if (!empty($autoPlayVideo) && !empty($autoPlayVideo['filename'])) {
$autoPlaySources = getSources($autoPlayVideo['filename'], true);
$autoPlayURL = $autoPlayVideo['url'];
$autoPlayPoster = "{$global['webSiteRootURL']}videos/{$autoPlayVideo['filename']}.jpg";
$autoPlayThumbsSprit = "{$global['webSiteRootURL']}videos/{$autoPlayVideo['filename']}_thumbsSprit.jpg";
} else {
$autoPlaySources = array();
$autoPlayURL = '';
$autoPlayPoster = '';
$autoPlayThumbsSprit = "";
}
if (empty($_GET['videoName'])) {
$_GET['videoName'] = $video['clean_title'];
}
$v = Video::getVideoFromCleanTitle($_GET['videoName']);
$modeYouTubeTimeLog['Code part 4'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
AVideoPlugin::getModeYouTube($v['id']);
$modeYouTubeTimeLog['Code part 5'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
if (empty($video)) {
header('HTTP/1.0 404 Not Found', true, 404);
}
$modeYouTubeTimeLog['Code part 6'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
}
// video not found
if (empty($video)) {
$img = "{$global['webSiteRootURL']}view/img/this-video-is-not-available.jpg";
$poster = "{$global['webSiteRootURL']}view/img/this-video-is-not-available.jpg";
$imgw = 1280;
$imgh = 720;
unset($_SESSION['type']);
session_write_close();
$video = array();
$video['id'] = 0;
$video['type'] = 'notfound';
$video['rotation'] = 0;
$video['videoLink'] = "";
$video['title'] = __("Video Not Available");
$video['clean_title'] = "video-not-available";
$video['description'] = "";
$video['duration'] = "";
$video['creator'] = "";
$video['likes'] = "";
$video['dislikes'] = "";
$video['category'] = "embed";
$video['views_count'] = 0;
$video['filename'] = "";
header('HTTP/1.0 404 Not Found', true, 404);
}
$metaDescription = " {$video['id']}";
// make sure the title tag does not have more then 70 chars
$titleTag = $video['title'];
$titleTag = (strlen($titleTag) > 50) ? (substr($titleTag, 0, 48) . " …") : $titleTag;
$seoComplement = getSEOComplement();
-$titleTag .= !empty($seoComplement) ? " :: " . $seoComplement : "";
-$titleTag .= " :: " . $config->getWebSiteTitle();
+$titleTag .= !empty($seoComplement) ? $config->getPageTitleSeparator() . $seoComplement : "";
+$titleTag .= $config->getPageTitleSeparator() . $config->getWebSiteTitle();
$titleTag = (strlen($titleTag) > 70) ? (substr($titleTag, 0, 68) . " …") : $titleTag;
if (!empty($video['users_id']) && User::hasBlockedUser($video['users_id'])) {
$video['type'] = "blockedUser";
}
?>
showChannelBannerOnModeYoutube)) {
?>
! videoNotFoundText->value) ? __("We have not found any videos or audios to show") : $advancedCustom->videoNotFoundText->value; ?>.
disableYoutubePlayerIntegration;
} else {
$disableYoutubeIntegration = false;
}
if ((isset($_GET['isEmbedded'])) && ($disableYoutubeIntegration == false)) {
if ($_GET['isEmbedded'] == "y") {
?>
$value) {
if ($value > 0.5) {
echo "*** ";
}
echo "{$key} = {$value} seconds \n";
}
echo "\n -->";
?>
diff --git a/view/signUp.php b/view/signUp.php
index f924d9248..73a7dea45 100644
--- a/view/signUp.php
+++ b/view/signUp.php
@@ -1,208 +1,208 @@
disableNativeSignUp)) {
die(__("Sign Up Disabled"));
}
$agreement = AVideoPlugin::loadPluginIfEnabled("SignUpAgreement");
$signInLink = "{$global['webSiteRootURL']}user?redirectUri=".urlencode(isset($_GET['redirectUri']) ? $_GET['redirectUri'] : "");
if(!empty($_GET['siteRedirectUri'])){
$signInLink = $_GET['siteRedirectUri'];
}
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
forceLoginToBeTheEmail)) {
?>
getSignupCheckBox();
}
?>
diff --git a/view/trending.php b/view/trending.php
index 94c16d507..aaf15aaf4 100644
--- a/view/trending.php
+++ b/view/trending.php
@@ -1,239 +1,239 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
diff --git a/view/update.php b/view/update.php
index 76ff41d69..a2fa4efd5 100644
--- a/view/update.php
+++ b/view/update.php
@@ -1,200 +1,200 @@
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
getVersion()); ?>
Version {$value['version']}";
$disabled = "disabled";
}
?>
" . count($updateFiles) . ""); ?>
Our repository is now running at version version; ?>.
You can follow this
Update Tutorial
to update your files and get the latest version.
error = "";
foreach ($lines as $line) {
if (substr($line, 0, 2) == '--' || $line == '')
continue;
$templine .= $line;
if (substr(trim($line), -1, 1) == ';') {
if (!$global['mysqli']->query($templine)) {
$obj->error = ('Error performing query \'
' . $templine . '\': ' . $global['mysqli']->error . ' ');
echo json_encode($obj);
//exit;
}
$templine = '';
}
}
// insert configuration if is version 1.0
if ($config->currentVersionLowerThen('1.0')) {
$sql = "DELETE FROM configurations WHERE id = 1 ";
if ($global['mysqli']->query($sql) !== TRUE) {
$obj->error = "Error deleting configuration: " . $global['mysqli']->error;
echo json_encode($obj);
exit;
}
$sql = "INSERT INTO configurations (id, video_resolution, users_id, version, created, modified) VALUES (1, '426:240', " . User::getId() . ",'1.0', now(), now())";
if ($global['mysqli']->query($sql) !== TRUE) {
$obj->error = "Error creating configuration: " . $global['mysqli']->error;
echo json_encode($obj);
exit;
}
}
if ($config->currentVersionEqual('1.0')) {
$sql = "UPDATE configurations SET users_id = " . User::getId() . ", version = '1.1', webSiteTitle = '{$global['webSiteTitle']}', language = '{$global['language']}', contactEmail = '{$global['contactEmail']}', modified = now() WHERE id = 1";
if ($global['mysqli']->query($sql) !== TRUE) {
$obj->error = "Error creating configuration: " . $global['mysqli']->error;
echo json_encode($obj);
exit;
}
}
//$renamed = rename("{$global['systemRootPath']}updateDb.sql", "{$global['systemRootPath']}updateDb.sql.old");
?>
diff --git a/view/user.php b/view/user.php
index d8e8f63e5..7828eedb4 100644
--- a/view/user.php
+++ b/view/user.php
@@ -1,107 +1,107 @@
type} fix-width\">{$value->text}";
}
//$json_file = url_get_contents("{$global['webSiteRootURL']}plugin/CustomizeAdvanced/advancedCustom.json.php");
// convert the string to a json object
//$advancedCustom = json_decode($json_file);
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
loadSelfUser();
?>
disablePersonalInfo)) { ?>
getId()); ?>
disablePersonalInfo)) { ?>
getId()); ?>
diff --git a/view/videoEmbeded.php b/view/videoEmbeded.php
index 93170c2d9..f53bb101c 100644
--- a/view/videoEmbeded.php
+++ b/view/videoEmbeded.php
@@ -1,567 +1,567 @@
thumbnails;
$poster = $evideo->thumbnails;
$imgw = 1280;
$imgh = 720;
$autoPlaySources = array();
$autoPlayURL = '';
$autoPlayPoster = '';
$autoPlayThumbsSprit = '';
} else if (!empty($_GET['v'])) {
$video = Video::getVideo($_GET['v'], "", true, false, false, true);
//$video['id'] = $_GET['v'];
} else if (!empty($_GET['videoName'])) {
$video = Video::getVideoFromCleanTitle($_GET['videoName']);
}
Video::unsetAddView($video['id']);
AVideoPlugin::getEmbed($video['id']);
if (empty($video)) {
forbiddenPage("Video not found");
}
if (empty($customizedAdvanced)) {
$customizedAdvanced = AVideoPlugin::getObjectDataIfEnabled('CustomizeAdvanced');
}
if (!isSameDomain(@$_SERVER['HTTP_REFERER'], $global['webSiteRootURL']) && !isAVideoMobileApp()) {
if (!empty($advancedCustomUser->blockEmbedFromSharedVideos) && !CustomizeUser::canShareVideosFromVideo($video['id'])) {
if(!empty($advancedCustomUser->blockEmbedFromSharedVideos)){
error_log("Embed is forbidden: \$advancedCustomUser->blockEmbedFromSharedVideos");
}
if(!CustomizeUser::canShareVideosFromVideo($video['id'])){
error_log("Embed is forbidden: !CustomizeUser::canShareVideosFromVideo(\$video['id'])");
}
forbiddenPage("Embed is forbidden");
}
}
$imgw = 1280;
$imgh = 720;
if ($video['type'] !== "pdf") {
$source = Video::getSourceFile($video['filename']);
$img = $source['url'];
$data = getimgsize($source['path']);
$imgw = $data[0];
$imgh = $data[1];
} else if (($video['type'] !== "audio") && ($video['type'] !== "linkAudio")) {
$source = Video::getSourceFile($video['filename']);
$img = $source['url'];
$data = getimgsize($source['path']);
$imgw = $data[0];
$imgh = $data[1];
} else {
$img = "{$global['webSiteRootURL']}view/img/audio_wave.jpg";
}
$images = Video::getImageFromFilename($video['filename']);
$poster = $images->poster;
if (!empty($images->posterPortrait)) {
$img = $images->posterPortrait;
$data = getimgsize($source['path']);
$imgw = $data[0];
$imgh = $data[1];
}
require_once $global['systemRootPath'] . 'plugin/AVideoPlugin.php';
/*
* Swap aspect ratio for rotated (vvs) videos
if ($video['rotation'] === "90" || $video['rotation'] === "270") {
$embedResponsiveClass = "embed-responsive-9by16";
$vjsClass = "vjs-9-16";
} else {
$embedResponsiveClass = "embed-responsive-16by9";
$vjsClass = "vjs-16-9";
} */
$vjsClass = "";
$obj = new Video("", "", $video['id']);
$resp = $obj->addView();
if (($video['type'] !== "audio") && ($video['type'] !== "linkAudio")) {
$poster = "{$global['webSiteRootURL']}videos/{$video['filename']}.jpg";
} else {
$poster = "{$global['webSiteRootURL']}view/img/audio_wave.jpg";
}
//https://.../vEmbed/527?modestbranding=1&showinfo=0&autoplay=1&controls=0&loop=1&mute=1&t=0
$modestbranding = false;
$autoplay = false;
$controls = "controls";
$loop = "";
$mute = "";
$objectFit = "";
$t = 0;
if (isset($_GET['modestbranding']) && $_GET['modestbranding'] == "1") {
$modestbranding = true;
}
if (!empty($_GET['autoplay']) || $config->getAutoplay()) {
$autoplay = true;
}
if (isset($_GET['controls']) && $_GET['controls'] == "0") {
$controls = "";
}
if (!empty($_GET['loop'])) {
$loop = "loop";
}
if (!empty($_GET['mute'])) {
$mute = 'muted="muted"';
}
if (!empty($_GET['objectFit'])) {
$objectFit = 'object-fit: ' . $_GET['objectFit'];
}
if (!empty($_GET['t'])) {
$t = intval($_GET['t']);
} else if (!empty($video['progress']['lastVideoTime'])) {
$t = intval($video['progress']['lastVideoTime']);
} else if (!empty($video['externalOptions']->videoStartSeconds)) {
$t = parseDurationToSeconds($video['externalOptions']->videoStartSeconds);
}
$playerSkinsO = AVideoPlugin::getObjectData("PlayerSkins");
$disableEmbedTopInfo = $playerSkinsO->disableEmbedTopInfo;
$url = Video::getLink($video['id'], $video['clean_title'], false);
$title = str_replace('"', '', $video['title']) . ' - ' . $config->getWebSiteTitle();
$photo = User::getPhoto($video['users_id']);
if (empty($currentTime)) {
$currentTime = 0;
}
if (User::hasBlockedUser($video['users_id'])) {
$disableEmbedTopInfo = true;
$video['type'] = "blockedUser";
}
?>
- :: getWebSiteTitle(); ?>
+ getPageTitleSeparator() . $config->getWebSiteTitle(); ?>
You've blocked user ()
You won't see any comments or videos from this user
" class="img img-responsive" style="height: 100%;" >
open($sources['zip']["path"]);
for ($i = 0; $i < $za->numFiles; $i++) {
$stat = $za->statIndex($i);
$fname = basename($stat['name']);
?>
class="center-block video-js vjs-default-skin vjs-big-play-centered" id="mainVideo" data-setup='{ "fluid": true }'
poster="view/img/recorder.gif">
horse
horse
class="video-js vjs-default-skin vjs-big-play-centered " id="mainVideo">
" >
";
echo getVTTTracks($video['filename']);
}
?>
class="video-js vjs-default-skin vjs-big-play-centered " id="mainVideo">
' . $subscribe . '